package ebuy.com.server.imp;

import ebuy.com.dao.Shoppingdao;
import ebuy.com.pojo.Shopping;
import ebuy.com.server.Shoppingserver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class Shoppingserverimp implements Shoppingserver {
    @Autowired
    private Shoppingdao shoppingdao;

    @Override
    public int Addshoppingcart(Shopping shopping) {
        return shoppingdao.Addshoppingcart(shopping);
    }

    @Override
    public int Deleteshoppingcart(Integer id) {
        return shoppingdao.Deleteshoppingcart(id);
    }

    @Override
    public Shopping Queryshoppingcartid(Integer shoppingid) {
        return shoppingdao.Queryshoppingcartid(shoppingid);
    }
}
